<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

Route::group('admin', function () {
    Route::rule("/", "admin/index/login");
    Route::rule("index", "admin/home/index");
    Route::rule('loginOut', 'admin/Home/loginOut');
    Route::rule('index/main', 'admin/home/main'); //后台首页展示面板

    Route::rule('article_list', 'admin/article/lst');
    Route::rule('article_del', 'admin/article/del');
    Route::rule('article_selectDel', 'admin/article/selectDel');
    Route::rule('article_add', 'admin/article/index');
    Route::rule('article_edit/[:id]', 'admin/article/edit');

    Route::rule('guide_list', 'admin/guide/lst');
    Route::rule('guide_del', 'admin/guide/del');
    Route::rule('guide_selectDel', 'admin/guide/selectDel');
    Route::rule('guide_add', 'admin/guide/index');
    Route::rule('guide_edit/[:id]', 'admin/guide/edit');

    Route::rule('download_list', 'admin/download/lst');
    Route::rule('download_del', 'admin/download/del');
    Route::rule('download_selectDel', 'admin/download/selectDel');
    Route::rule('download_add', 'admin/download/index');
    Route::rule('download_edit/[:id]', 'admin/download/edit');



    Route::rule('banner_index', 'admin/banner/index');
    Route::rule('banner_add', 'admin/banner/add');
    Route::rule('banner_del', 'admin/banner/del');
    Route::rule('banner_selectDel', 'admin/banner/selectDel');
    Route::rule('banner_edit/[:id]', 'admin/banner/edit');



    Route::rule('users_lst', 'admin/users/index');
    Route::rule('usersr_del', 'admin/users/del');
    Route::rule('users_selectDel', 'admin/users/selectDel');
    Route::rule('Login_user','admin/LoginUser/index');
    Route::rule('Login_add','admin/LoginUser/add');
    Route::rule('Login_del','admin/LoginUser/del');
    Route::rule('Login_selectDel','admin/LoginUser/selectDel');
    Route::rule('Login_edit/[:id]','admin/LoginUser/edit');

    Route::rule('project','admin/project/index');
    Route::rule('project_add','admin/project/add');
    Route::rule('project_del','admin/project/del');
    Route::rule('project_selectDel','admin/project/selectDel');
    Route::rule('project_edit/[:id]','admin/project/edit');
    Route::rule('project_end/[:id]','admin/project/project_end');


    Route::rule('user_index','admin/User/index');
    Route::rule('user_add','admin/User/add');
    Route::rule('user_del','admin/User/del');
    Route::rule('user_selectDel','admin/User/selectDel');
    Route::rule('user_edit/[:id]','admin/User/edit');

    //后台申请管理
    Route::rule('apply_index','admin/apply/index');
    Route::rule('user_del','admin/apply/del');
    Route::rule('user_selectDel','admin/apply/selectDel');
    Route::rule('apply_edit/[:id]','admin/apply/edit');

    //已经报名的用户
    Route::rule('enlist/[:id]','admin/project/enlist');

    //用户已经报名的项目列表
    Route::rule('enlist_user/[:id]','admin/user/enlist');

    //系统配置表
    Route::rule('webConfig','admin/home/webconfig');
});


Route::get('/', 'index/index/index');
Route::rule('login', 'index/index/login');
Route::rule('register', 'index/index/register');
Route::rule("upImg", "index/Img/index");

Route::rule('article_details/[:id]', 'index/article/details');
Route::rule('article_index_list', 'index/article/lst');
Route::rule('order_index', 'index/order/index');
Route::rule('order_details/[:id]', 'index/order/details');
Route::rule('userInfo','index/user/userInfo');
Route::rule('loginOut','index/index/loginOut');
Route::rule('userInfoEdit','index/user/userInfoEdit');
Route::rule('project_list', 'index/project/index');
Route::rule('detail/[:id]','index/project/detail');
Route::rule('article_index','index/article/index');
Route::rule('article_detail/[:id]','index/article/detail');

Route::rule('download_index','index/download/index');
Route::rule('download_detail/[:id]','index/download/detail');

//前台用户个人中心
Route::rule('my_index','index/user/my_index');
Route::rule('my_project','index/user/my_project');
Route::rule('my_project_detail/[:id]','index/user/my_project_detail');
Route::rule('serviceTime','index/user/serviceTime');
Route::rule('integral','index/user/integral');

//前台网站指南
Route::rule('guide_index', 'index/guide/index');
Route::rule('guide_detail/[:id]', 'index/guide/detail');


Route::rule('show_card', 'index/user/showCard');





